home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #6
/
Amiga Plus CD - 2004 - No. 06.iso
/
AmigaPlus
/
Begleitmaterial
/
50Tools
/
Grafik
/
PerfectPaint
/
rexx
/
Anim
/
PPAnim.rx
< prev
next >
Wrap
Text File
|
2001-10-01
|
681b
|
61 lines
/* arexx Script
*/
options results
parse ARG Port b
ADDRESS value Port
pp_GetDepth
D=result
pp_GetWidth
W=result
pp_GetHeight
H=result
pp_CountFrames
count=result
IF count<2 then DO
pp_Warn 'Make*an*Anim*first.'
EXIT
END
pp_GetCurrentBrush
B0=result
pp_FindEmptyBrush
Brush=result
if Brush=-1 then DO
pp_Warn "can't*find*empty|Brush."
EXIT
END
pp_SetBrush Brush
pp_EffectOff
pp_GotoFrame count
pp_AddFrames (count-2)
C=count+(count-2)
j=0
DO i=(count-1) to 2 by -1
pp_GotoFrame i
pp_PickBrush 0 0 w h 1
pp_GotoFrame (count+1+j)
pp_Plot w/2 h/2
j=j+1
END
pp_GotoFrame 1
pp_FreeBrush
pp_SetBrush B0
EXIT